Skip to contentSkip to conversation

Change in openvpn[master]: pull-filter: improve documentation

Openvpn-devel Superseded selvanair (Code Review) 2 participants 21 messages Dec 4, 2025 – Dec 9, 2025 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): gerrit.1764812658000.I2c8d40038e52fbdff1c56f93db1e6a2f9255c59a@...2715...

#1 lore raw

Attention is currently required from: plaisthos.

Hello plaisthos,

I'd like you to do a code review.
Please visit

    http://gerrit.openvpn.net/c/openvpn/+/1415?usp=email

to review the following change.

Change subject: pull-filter: improve documentation
......................................................................

pull-filter: improve documentation

Pull-filter uses a simple string comparison and could be defeated by unusual formatting of pushed option strings. Document that this option is not meant to be used as a security measure.

Reported by: <[email protected]...>

Change-Id I2c8d40038e52fbdff1c56f93db1e6a2f9255c59a

---
M doc/man-sections/client-options.rst

1 file changed, 8 insertions(+), 0 deletions(-)

git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/15/1415/1

doc/man-sections/client-options.rst +8 -0
index e8523d9..f3073f8 100644
@@ -345,6 +345,14 @@
   next remote succeeds. To silently ignore an option pushed by the server,
   use :code:`ignore`.
 
+  *Warning:* ``pull-filter`` cannot be relied upon as a security measure to
+  protect against offending options pushed by a server. For example, the
+  filter could be defeated by pushing options with extra spaces between
+  tokens or other formatting variations. In such situations, an "allow-list"
+  approach using a generic ``pull-filter ignore`` followed by more specific
+  ``pull-filter accept`` directives should be preferred over a "deny-list"
+  approach.
+
 --push-peer-info
   Push additional information about the client to server. The following
   data is always pushed to the server:

--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1415?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email

Gerrit-MessageType: newchange
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I2c8d40038e52fbdff1c56f93db1e6a2f9255c59a
Gerrit-Change-Number: 1415
Gerrit-PatchSet: 1
Gerrit-Owner: selvanair <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>

#2 lore raw
In reply to a message not in the archive

Attention is currently required from: plaisthos, selvanair.

cron2 has posted comments on this change by selvanair. ( http://gerrit.openvpn.net/c/openvpn/+/1415?usp=email )

Change subject: pull-filter: improve documentation
......................................................................

Patch Set 1: Code-Review-1

(1 comment)

File doc/man-sections/client-options.rst:

http://gerrit.openvpn.net/c/openvpn/+/1415/comment/733a8042_b2df151c?usp=email :
PS1, Line 349: protect against offending options pushed by a server. For example, the
I would word the first part slightly differently (just as a suggestion)

```
*Warning:* if using ``pull-filter`` as a security measure to protect against offending options pushed by a server, a negative match (ignore/reject) might be circumvented by pushing options with extra spaces...
```

and then the rest as is - except that I think it needs to be the other way round, first the specific ``accept`` and then the generic ``ignore`` - the logic is "first match decided"... so

```
pull-filter accept route 1.2.3.0
pull-filter ignore route
```

would permit 1.2.3.0, while the other way round would ignore all routes. At least this is what I remember and the code seems to agree with me :-)

--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1415?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email

Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I2c8d40038e52fbdff1c56f93db1e6a2f9255c59a
Gerrit-Change-Number: 1415
Gerrit-PatchSet: 1
Gerrit-Owner: selvanair <[email protected]...>
Gerrit-Reviewer: cron2 <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: selvanair <[email protected]...>
Gerrit-Comment-Date: Mon, 08 Dec 2025 11:07:29 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes

#3 lore raw
In reply to a message not in the archive

Attention is currently required from: cron2, plaisthos.

selvanair has posted comments on this change by selvanair. ( http://gerrit.openvpn.net/c/openvpn/+/1415?usp=email )

Change subject: pull-filter: improve documentation
......................................................................

Patch Set 1:

(1 comment)

File doc/man-sections/client-options.rst:

http://gerrit.openvpn.net/c/openvpn/+/1415/comment/08b3c3d0_c199f4ee?usp=email :
PS1, Line 349: protect against offending options pushed by a server. For example, the

Quoted 1 line

I would word the first part slightly differently (just as a suggestion) […]

(i) I wanted to discourage using pull-filter as a security feature at all. Your suggestion would suggest its okay to use it for security, but there are caveats. As bypassing the filter is easy, I'm not convinced of that take.

(ii) You are absolutely right -- I got the order inverted -- will fix.

--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1415?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email

Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I2c8d40038e52fbdff1c56f93db1e6a2f9255c59a
Gerrit-Change-Number: 1415
Gerrit-PatchSet: 1
Gerrit-Owner: selvanair <[email protected]...>
Gerrit-Reviewer: cron2 <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: cron2 <[email protected]...>
Gerrit-Comment-Date: Mon, 08 Dec 2025 15:04:52 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: cron2 <[email protected]...>

#4 lore raw
In reply to a message not in the archive

Attention is currently required from: plaisthos, selvanair.

cron2 has posted comments on this change by selvanair. ( http://gerrit.openvpn.net/c/openvpn/+/1415?usp=email )

Change subject: pull-filter: improve documentation
......................................................................

Patch Set 1:

(1 comment)

File doc/man-sections/client-options.rst:

http://gerrit.openvpn.net/c/openvpn/+/1415/comment/fbc0101c_fded5f06?usp=email :
PS1, Line 349: protect against offending options pushed by a server. For example, the

Quoted 1 line

(i) I wanted to discourage using pull-filter as a security feature at all. […]

Well, I see your point, but then I find your wording a bit hard to understand - "it can not be relied upon - but here is how you do it". My take is more "it *can* be used, but you need to be careful to get it right"...

OTOH I'm not a native speaker, so I've made my point :-) - and will go along with what you end up with.

--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1415?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email

Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I2c8d40038e52fbdff1c56f93db1e6a2f9255c59a
Gerrit-Change-Number: 1415
Gerrit-PatchSet: 1
Gerrit-Owner: selvanair <[email protected]...>
Gerrit-Reviewer: cron2 <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: selvanair <[email protected]...>
Gerrit-Comment-Date: Mon, 08 Dec 2025 15:12:15 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: cron2 <[email protected]...>
Comment-In-Reply-To: selvanair <[email protected]...>

#5 lore raw
In reply to a message not in the archive

Attention is currently required from: cron2, plaisthos.

selvanair has posted comments on this change by selvanair. ( http://gerrit.openvpn.net/c/openvpn/+/1415?usp=email )

Change subject: pull-filter: improve documentation
......................................................................

Patch Set 1:

(1 comment)

File doc/man-sections/client-options.rst:

http://gerrit.openvpn.net/c/openvpn/+/1415/comment/cb5ea473_694dd9d3?usp=email :
PS1, Line 349: protect against offending options pushed by a server. For example, the

Quoted 1 line

Well, I see your point, but then I find your wording a bit hard to understand - "it can not be relie […]

This is what I wanted to say: Pull filter was not designed as a security measure, so do not use it for security, its easy to be defeated. That said, there is some care one could take while writing the filter commands to guard against formatting mismatches. I do not want to give an impression that its "secure" once ordered as an "allow-list". May be it is, I do not know.

I just paraphrased the above into a more formal form --- "in such situations" was meant to refer to spaces/formatting mismatches, not security; "preferred" is meant to indicate that its a suggestion, not a fool-proof work-around. I see its a bit nuanced. If the intended meaning is not coming through I'll rewrite it:

Option 1 -- use a less nuanced language:

Warning: The pull-filter mechanism must not be regarded as a security measure for blocking undesired server-pushed options. It can be circumvented through formatting variations (e.g., added whitespace). To improve robustness against such formatting discrepancies, an "allow-list" configuration using specific pull-filter accept directives followed by a general pull-filter ignore is preferred to a "deny-list" approach. This recommendation does not imply that pull-filter provides any security guarantees.

Option 2 -- Just add an extra line:
"This approach improves robustness but does not guarantee security."

--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1415?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email

Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I2c8d40038e52fbdff1c56f93db1e6a2f9255c59a
Gerrit-Change-Number: 1415
Gerrit-PatchSet: 1
Gerrit-Owner: selvanair <[email protected]...>
Gerrit-Reviewer: cron2 <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: cron2 <[email protected]...>
Gerrit-Comment-Date: Mon, 08 Dec 2025 16:13:29 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: cron2 <[email protected]...>
Comment-In-Reply-To: selvanair <[email protected]...>

#6 lore raw
In reply to a message not in the archive

Attention is currently required from: plaisthos, selvanair.

cron2 has posted comments on this change by selvanair. ( http://gerrit.openvpn.net/c/openvpn/+/1415?usp=email )

Change subject: pull-filter: improve documentation
......................................................................

Patch Set 1:

(1 comment)

File doc/man-sections/client-options.rst:

http://gerrit.openvpn.net/c/openvpn/+/1415/comment/9a5b4c11_dfcbcb2d?usp=email :
PS1, Line 349: protect against offending options pushed by a server. For example, the

Quoted 1 line

This is what I wanted to say: Pull filter was not designed as a security measure, so do not use it f […]

Mmmh. I do think it's reasonably secure if used correctly (allowlist) *but* I agree that one needs to take care and it's easy to produce something that works against a non-malicious server that just pushes an unwanted route, and consider that "secure". Which it quite likely won't be.

This is what my suggested wording was intended to convey ;-)

But we can agree to disagree on this - in this case I'd go for "Option 2".

--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1415?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email

Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I2c8d40038e52fbdff1c56f93db1e6a2f9255c59a
Gerrit-Change-Number: 1415
Gerrit-PatchSet: 1
Gerrit-Owner: selvanair <[email protected]...>
Gerrit-Reviewer: cron2 <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: selvanair <[email protected]...>
Gerrit-Comment-Date: Mon, 08 Dec 2025 17:00:06 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: cron2 <[email protected]...>
Comment-In-Reply-To: selvanair <[email protected]...>

#7 lore raw
In reply to a message not in the archive

Attention is currently required from: cron2, plaisthos, selvanair.

Hello cron2, plaisthos,

I'd like you to reexamine a change. Please visit

    http://gerrit.openvpn.net/c/openvpn/+/1415?usp=email

to look at the new patch set (#2).

The following approvals got outdated and were removed:
Code-Review-1 by cron2

Change subject: pull-filter: improve documentation
......................................................................

pull-filter: improve documentation

Pull-filter uses a simple string comparison and could be defeated by unusual formatting of pushed option strings. Document that this option is not meant to be used as a security measure.

Reported by: <[email protected]...>

Change-Id I2c8d40038e52fbdff1c56f93db1e6a2f9255c59a

---
M doc/man-sections/client-options.rst

1 file changed, 8 insertions(+), 0 deletions(-)

git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/15/1415/2

doc/man-sections/client-options.rst +8 -0
index e8523d9..17f0a6a 100644
@@ -345,6 +345,14 @@
   next remote succeeds. To silently ignore an option pushed by the server,
   use :code:`ignore`.
 
+  *Warning:* ``pull-filter`` cannot be relied upon as a security measure to
+  protect against offending options pushed by a server. For example, the
+  filter could be defeated by pushing options with extra spaces between
+  tokens or other formatting variations. In such situations, an "allow-list"
+  approach using specific ``pull-filter accept`` directives followed by a
+  generic ``pull-filter ignore`` should be preferred over a "deny-list"
+  approach. This improves robustness but does not guarantee security.
+
 --push-peer-info
   Push additional information about the client to server. The following
   data is always pushed to the server:

--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1415?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email

Gerrit-MessageType: newpatchset
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I2c8d40038e52fbdff1c56f93db1e6a2f9255c59a
Gerrit-Change-Number: 1415
Gerrit-PatchSet: 2
Gerrit-Owner: selvanair <[email protected]...>
Gerrit-Reviewer: cron2 <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: cron2 <[email protected]...>
Gerrit-Attention: selvanair <[email protected]...>

#8 lore raw
In reply to a message not in the archive

Attention is currently required from: cron2, plaisthos.

selvanair has posted comments on this change by selvanair. ( http://gerrit.openvpn.net/c/openvpn/+/1415?usp=email )

Change subject: pull-filter: improve documentation
......................................................................

Patch Set 2:

(1 comment)

File doc/man-sections/client-options.rst:

http://gerrit.openvpn.net/c/openvpn/+/1415/comment/9beb5395_c14a4c30?usp=email :
PS1, Line 349: protect against offending options pushed by a server. For example, the

Quoted 1 line

Mmmh. […]

Done

--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1415?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email

Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I2c8d40038e52fbdff1c56f93db1e6a2f9255c59a
Gerrit-Change-Number: 1415
Gerrit-PatchSet: 2
Gerrit-Owner: selvanair <[email protected]...>
Gerrit-Reviewer: cron2 <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: cron2 <[email protected]...>
Gerrit-Comment-Date: Mon, 08 Dec 2025 19:17:39 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: cron2 <[email protected]...>
Comment-In-Reply-To: selvanair <[email protected]...>

#9 lore raw
In reply to a message not in the archive

Attention is currently required from: plaisthos, selvanair.

cron2 has posted comments on this change by selvanair. ( http://gerrit.openvpn.net/c/openvpn/+/1415?usp=email )

Change subject: pull-filter: improve documentation
......................................................................

Patch Set 2: Code-Review+2

--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1415?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email

Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I2c8d40038e52fbdff1c56f93db1e6a2f9255c59a
Gerrit-Change-Number: 1415
Gerrit-PatchSet: 2
Gerrit-Owner: selvanair <[email protected]...>
Gerrit-Reviewer: cron2 <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: selvanair <[email protected]...>
Gerrit-Comment-Date: Mon, 08 Dec 2025 19:40:10 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes

#10 lore raw

PATCH v2 1/1 pull-filter: improve documentation

In reply to a message not in the archive

From: Selva Nair <[email protected]...>

Pull-filter uses a simple string comparison and could be defeated by unusual formatting of pushed option strings. Document that this option is not meant to be used as a security measure.

Reported by: <[email protected]...>

Change-Id I2c8d40038e52fbdff1c56f93db1e6a2f9255c59a

Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1415
---

This change was reviewed on Gerrit and approved by at least one developer. I request to merge it to master.

Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1415
This mail reflects revision 2 of this Change.

Acked-by according to Gerrit (reflected above):
Gert Doering <[email protected]...>

doc/man-sections/client-options.rst +8 -0
index e8523d9..17f0a6a 100644
@@ -345,6 +345,14 @@
   next remote succeeds. To silently ignore an option pushed by the server,
   use :code:`ignore`.
 
+  *Warning:* ``pull-filter`` cannot be relied upon as a security measure to
+  protect against offending options pushed by a server. For example, the
+  filter could be defeated by pushing options with extra spaces between
+  tokens or other formatting variations. In such situations, an "allow-list"
+  approach using specific ``pull-filter accept`` directives followed by a
+  generic ``pull-filter ignore`` should be preferred over a "deny-list"
+  approach. This improves robustness but does not guarantee security.
+
 --push-peer-info
   Push additional information about the client to server. The following
   data is always pushed to the server:
#11 lore raw
In reply to a message not in the archive

Attention is currently required from: plaisthos, selvanair.

selvanair has posted comments on this change by selvanair. ( http://gerrit.openvpn.net/c/openvpn/+/1415?usp=email )

Change subject: pull-filter: improve documentation
......................................................................

Patch Set 2:

(1 comment)

Patchset:

PS2:
In fact, the following will bypass "pull-filter ignore route "!

push "\"route\" x.y.z.0 255.255.255.0"

--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1415?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email

Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I2c8d40038e52fbdff1c56f93db1e6a2f9255c59a
Gerrit-Change-Number: 1415
Gerrit-PatchSet: 2
Gerrit-Owner: selvanair <[email protected]...>
Gerrit-Reviewer: cron2 <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: selvanair <[email protected]...>
Gerrit-Comment-Date: Mon, 08 Dec 2025 19:46:51 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No

#12 lore raw
In reply to a message not in the archive

Attention is currently required from: plaisthos, selvanair.

cron2 has posted comments on this change by selvanair. ( http://gerrit.openvpn.net/c/openvpn/+/1415?usp=email )

Change subject: pull-filter: improve documentation
......................................................................

Patch Set 2:

(1 comment)

Patchset:

PS2:

Quoted 1 line

In fact, the following will bypass "pull-filter ignore route "! […]

ewww... who permitted such ugliness to pass the parser...

so, reword again? "Do not connect to malicious servers, period"?

--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1415?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email

Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I2c8d40038e52fbdff1c56f93db1e6a2f9255c59a
Gerrit-Change-Number: 1415
Gerrit-PatchSet: 2
Gerrit-Owner: selvanair <[email protected]...>
Gerrit-Reviewer: cron2 <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: selvanair <[email protected]...>
Gerrit-Comment-Date: Mon, 08 Dec 2025 21:31:20 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: selvanair <[email protected]...>

#13 lore raw
In reply to a message not in the archive

Attention is currently required from: cron2, plaisthos.

selvanair has posted comments on this change by selvanair. ( http://gerrit.openvpn.net/c/openvpn/+/1415?usp=email )

Change subject: pull-filter: improve documentation
......................................................................

Patch Set 2:

(1 comment)

Patchset:

PS2:

Quoted 1 line

ewww... who permitted such ugliness to pass the parser... […]

I had an inkling that there could be more ways than just spaces to defeat this -- and you challenged me to find one 😊

Anyway, such "unknown unknowns" is what prompted me to write this in a nuanced and hedged fashion... Now we know at least one concrete way to break it, we could just say:

*Warning:* ``pull-filter`` cannot be relied upon as a security measure to protect against offending options pushed by a server. For example, the filter could be defeated by pushing options with extra spaces between tokens or other formatting variations.

I thought about improving the matching algorithm, but it doesn't look trivial. For now it has to remain a convenience option.

--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1415?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email

Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I2c8d40038e52fbdff1c56f93db1e6a2f9255c59a
Gerrit-Change-Number: 1415
Gerrit-PatchSet: 2
Gerrit-Owner: selvanair <[email protected]...>
Gerrit-Reviewer: cron2 <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: cron2 <[email protected]...>
Gerrit-Comment-Date: Mon, 08 Dec 2025 21:50:59 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: cron2 <[email protected]...>
Comment-In-Reply-To: selvanair <[email protected]...>

#14 lore raw
In reply to a message not in the archive

Attention is currently required from: plaisthos, selvanair.

cron2 has posted comments on this change by selvanair. ( http://gerrit.openvpn.net/c/openvpn/+/1415?usp=email )

Change subject: pull-filter: improve documentation
......................................................................

Patch Set 2:

(1 comment)

Patchset:

PS2:

Quoted 1 line

I had an inkling that there could be more ways than just spaces to defeat this -- and you challenged […]

text works for me...

--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1415?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email

Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I2c8d40038e52fbdff1c56f93db1e6a2f9255c59a
Gerrit-Change-Number: 1415
Gerrit-PatchSet: 2
Gerrit-Owner: selvanair <[email protected]...>
Gerrit-Reviewer: cron2 <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: selvanair <[email protected]...>
Gerrit-Comment-Date: Mon, 08 Dec 2025 21:53:36 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: cron2 <[email protected]...>
Comment-In-Reply-To: selvanair <[email protected]...>

#15 lore raw
In reply to a message not in the archive

Attention is currently required from: cron2, plaisthos, selvanair.

Hello cron2, plaisthos,

I'd like you to reexamine a change. Please visit

    http://gerrit.openvpn.net/c/openvpn/+/1415?usp=email

to look at the new patch set (#3).

The following approvals got outdated and were removed:
Code-Review+2 by cron2

Change subject: pull-filter: improve documentation
......................................................................

pull-filter: improve documentation

Pull-filter uses a simple string comparison and could be defeated by unusual formatting of pushed option strings. Document that this option is not meant to be used as a security measure.

Reported by: <[email protected]...>

Change-Id I2c8d40038e52fbdff1c56f93db1e6a2f9255c59a

---
M doc/man-sections/client-options.rst

1 file changed, 5 insertions(+), 0 deletions(-)

git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/15/1415/3

doc/man-sections/client-options.rst +5 -0
index e8523d9..4841756 100644
@@ -345,6 +345,11 @@
   next remote succeeds. To silently ignore an option pushed by the server,
   use :code:`ignore`.
 
+  *Warning:* ``pull-filter`` cannot be relied upon as a security measure to
+  protect against offending options pushed by a server. For example, the
+  filter could be defeated by pushing options with extra spaces between
+  tokens or other formatting variations.
+
 --push-peer-info
   Push additional information about the client to server. The following
   data is always pushed to the server:

--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1415?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email

Gerrit-MessageType: newpatchset
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I2c8d40038e52fbdff1c56f93db1e6a2f9255c59a
Gerrit-Change-Number: 1415
Gerrit-PatchSet: 3
Gerrit-Owner: selvanair <[email protected]...>
Gerrit-Reviewer: cron2 <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: cron2 <[email protected]...>
Gerrit-Attention: selvanair <[email protected]...>

#16 lore raw
In reply to a message not in the archive

Attention is currently required from: cron2, plaisthos.

selvanair has posted comments on this change by selvanair. ( http://gerrit.openvpn.net/c/openvpn/+/1415?usp=email )

Change subject: pull-filter: improve documentation
......................................................................

Patch Set 2:

(1 comment)

Patchset:

PS2:
Done.

--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1415?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email

Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I2c8d40038e52fbdff1c56f93db1e6a2f9255c59a
Gerrit-Change-Number: 1415
Gerrit-PatchSet: 2
Gerrit-Owner: selvanair <[email protected]...>
Gerrit-Reviewer: cron2 <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: cron2 <[email protected]...>
Gerrit-Comment-Date: Mon, 08 Dec 2025 22:02:53 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No

#17 lore raw
In reply to a message not in the archive

Attention is currently required from: plaisthos, selvanair.

cron2 has posted comments on this change by selvanair. ( http://gerrit.openvpn.net/c/openvpn/+/1415?usp=email )

Change subject: pull-filter: improve documentation
......................................................................

Patch Set 3: Code-Review+2

--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1415?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email

Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I2c8d40038e52fbdff1c56f93db1e6a2f9255c59a
Gerrit-Change-Number: 1415
Gerrit-PatchSet: 3
Gerrit-Owner: selvanair <[email protected]...>
Gerrit-Reviewer: cron2 <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: selvanair <[email protected]...>
Gerrit-Comment-Date: Tue, 09 Dec 2025 07:02:01 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes

#18 lore raw

PATCH v3 1/1 pull-filter: improve documentation

In reply to a message not in the archive

From: Selva Nair <[email protected]...>

Pull-filter uses a simple string comparison and could be defeated by unusual formatting of pushed option strings. Document that this option is not meant to be used as a security measure.

Reported by: <[email protected]...>

Change-Id I2c8d40038e52fbdff1c56f93db1e6a2f9255c59a

Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1415
---

This change was reviewed on Gerrit and approved by at least one developer. I request to merge it to master.

Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1415
This mail reflects revision 3 of this Change.

Acked-by according to Gerrit (reflected above):
Gert Doering <[email protected]...>

doc/man-sections/client-options.rst +5 -0
index e8523d9..4841756 100644
@@ -345,6 +345,11 @@
   next remote succeeds. To silently ignore an option pushed by the server,
   use :code:`ignore`.
 
+  *Warning:* ``pull-filter`` cannot be relied upon as a security measure to
+  protect against offending options pushed by a server. For example, the
+  filter could be defeated by pushing options with extra spaces between
+  tokens or other formatting variations.
+
 --push-peer-info
   Push additional information about the client to server. The following
   data is always pushed to the server:
#19 lore raw

[Openvpn-devel] [PATCH applied] Re: pull-filter: improve documentation

Thanks :-)

For the other readers: this is a documentation-only update, intending to emphasize that "pull-filter" is not a secure solution (in the sense of "a malicious server can not find ways around it") to filter options sent by a, well, untrusted server. "Connecting to a server you do not fully trust" is not unheard-of - consulting customers passing on a VPN config to access to-be-consulted systems, but you do not want to send them any other traffic. Usually those are not actively malicious, though...

Your patch has been applied to the master and release/2.6 branch.

commit d3e03b9a97177f62d31697f2b4b453295ee30e60 (master) commit f8f1e1afac1a30ef7311bf75716421e08466780e (release/2.6)

Author: Selva Nair
Date:   Tue Dec 9 08:02:11 2025 +0100
     pull-filter: improve documentation

     Signed-off-by: Selva Nair <[email protected]...>
     Acked-by: Gert Doering <[email protected]...>
     Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1415
     Message-Id: <[email protected]...>
     URL: https://www.mail-archive.com/[email protected]/msg34930.html
     Signed-off-by: Gert Doering <[email protected]...>

--
kind regards,

Gert Doering

#20 lore raw
In reply to a message not in the archive

cron2 has uploaded a new patch set (#4) to the change originally created by selvanair. ( http://gerrit.openvpn.net/c/openvpn/+/1415?usp=email )

The following approvals got outdated and were removed:
Code-Review+2 by cron2

Change subject: pull-filter: improve documentation
......................................................................

pull-filter: improve documentation

Pull-filter uses a simple string comparison and could be defeated by unusual formatting of pushed option strings. Document that this option is not meant to be used as a security measure.

Reported by: <[email protected]...>

Change-Id I2c8d40038e52fbdff1c56f93db1e6a2f9255c59a

Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1415
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg34930.html

---
M doc/man-sections/client-options.rst

1 file changed, 5 insertions(+), 0 deletions(-)

git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/15/1415/4

doc/man-sections/client-options.rst +5 -0
index ca4c8e9..b9ae7ce 100644
@@ -345,6 +345,11 @@
   next remote succeeds. To silently ignore an option pushed by the server,
   use :code:`ignore`.
 
+  *Warning:* ``pull-filter`` cannot be relied upon as a security measure to
+  protect against offending options pushed by a server. For example, the
+  filter could be defeated by pushing options with extra spaces between
+  tokens or other formatting variations.
+
 --push-peer-info
   Push additional information about the client to server. The following
   data is always pushed to the server:

--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1415?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email

Gerrit-MessageType: newpatchset
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I2c8d40038e52fbdff1c56f93db1e6a2f9255c59a
Gerrit-Change-Number: 1415
Gerrit-PatchSet: 4
Gerrit-Owner: selvanair <[email protected]...>
Gerrit-Reviewer: cron2 <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>

#21 lore raw
In reply to a message not in the archive

cron2 has submitted this change. ( http://gerrit.openvpn.net/c/openvpn/+/1415?usp=email )

Change subject: pull-filter: improve documentation
......................................................................

pull-filter: improve documentation

Pull-filter uses a simple string comparison and could be defeated by unusual formatting of pushed option strings. Document that this option is not meant to be used as a security measure.

Reported by: <[email protected]...>

Change-Id I2c8d40038e52fbdff1c56f93db1e6a2f9255c59a

Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1415
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg34930.html

---
M doc/man-sections/client-options.rst

1 file changed, 5 insertions(+), 0 deletions(-)
doc/man-sections/client-options.rst +5 -0
index ca4c8e9..b9ae7ce 100644
@@ -345,6 +345,11 @@
   next remote succeeds. To silently ignore an option pushed by the server,
   use :code:`ignore`.
 
+  *Warning:* ``pull-filter`` cannot be relied upon as a security measure to
+  protect against offending options pushed by a server. For example, the
+  filter could be defeated by pushing options with extra spaces between
+  tokens or other formatting variations.
+
 --push-peer-info
   Push additional information about the client to server. The following
   data is always pushed to the server:

--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1415?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email

Gerrit-MessageType: merged
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I2c8d40038e52fbdff1c56f93db1e6a2f9255c59a
Gerrit-Change-Number: 1415
Gerrit-PatchSet: 4
Gerrit-Owner: selvanair <[email protected]...>
Gerrit-Reviewer: cron2 <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>